/**
 * Copyright 2009. Felix Dorner.
 * This code is licensed under the Eclipse Public License v1.0
 * http://www.eclipse.org/org/documents/epl-v10.html
 *
 * $Id$
 */
package com.objectcarpentry.kaylee.util;

import com.objectcarpentry.kaylee.*;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see com.objectcarpentry.kaylee.KayleePackage
 * @generated
 */
public class KayleeAdapterFactory extends AdapterFactoryImpl {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final String copyright = "Copyright 2009. Felix Dorner.\nThis code is licensed under the Eclipse Public License v1.0\nhttp://www.eclipse.org/org/documents/epl-v10.html";

	/**
	 * The cached model package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static KayleePackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public KayleeAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = KayleePackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc -->
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
	 * <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch that delegates to the <code>createXXX</code> methods.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected KayleeSwitch<Adapter> modelSwitch =
		new KayleeSwitch<Adapter>() {
			@Override
			public Adapter caseTrack(Track object) {
				return createTrackAdapter();
			}
			@Override
			public Adapter caseLibrary(Library object) {
				return createLibraryAdapter();
			}
			@Override
			public Adapter casePlaylist(Playlist object) {
				return createPlaylistAdapter();
			}
			@Override
			public Adapter casePlaylistEntry(PlaylistEntry object) {
				return createPlaylistEntryAdapter();
			}
			@Override
			public Adapter caseIPlayable(IPlayable object) {
				return createIPlayableAdapter();
			}
			@Override
			public Adapter caseIPlaylist(IPlaylist object) {
				return createIPlaylistAdapter();
			}
			@Override
			public Adapter casePlayable(Playable object) {
				return createPlayableAdapter();
			}
			@Override
			public <T extends Playable> Adapter caseAbstractPlaylist(AbstractPlaylist<T> object) {
				return createAbstractPlaylistAdapter();
			}
			@Override
			public Adapter caseFilteredPlaylist(FilteredPlaylist object) {
				return createFilteredPlaylistAdapter();
			}
			@Override
			public Adapter caseIPlayer(IPlayer object) {
				return createIPlayerAdapter();
			}
			@Override
			public Adapter caseIPlayerListener(IPlayerListener object) {
				return createIPlayerListenerAdapter();
			}
			@Override
			public Adapter caseIPlayerEvent(IPlayerEvent object) {
				return createIPlayerEventAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.Track <em>Track</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.Track
	 * @generated
	 */
	public Adapter createTrackAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.Library <em>Library</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.Library
	 * @generated
	 */
	public Adapter createLibraryAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.Playlist <em>Playlist</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.Playlist
	 * @generated
	 */
	public Adapter createPlaylistAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.PlaylistEntry <em>Playlist Entry</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.PlaylistEntry
	 * @generated
	 */
	public Adapter createPlaylistEntryAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.IPlayable <em>IPlayable</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.IPlayable
	 * @generated
	 */
	public Adapter createIPlayableAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.IPlaylist <em>IPlaylist</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.IPlaylist
	 * @generated
	 */
	public Adapter createIPlaylistAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.Playable <em>Playable</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.Playable
	 * @generated
	 */
	public Adapter createPlayableAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.AbstractPlaylist <em>Abstract Playlist</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.AbstractPlaylist
	 * @generated
	 */
	public Adapter createAbstractPlaylistAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.FilteredPlaylist <em>Filtered Playlist</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.FilteredPlaylist
	 * @generated
	 */
	public Adapter createFilteredPlaylistAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.IPlayer <em>IPlayer</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.IPlayer
	 * @generated
	 */
	public Adapter createIPlayerAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.IPlayerListener <em>IPlayer Listener</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.IPlayerListener
	 * @generated
	 */
	public Adapter createIPlayerListenerAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link com.objectcarpentry.kaylee.IPlayerEvent <em>IPlayer Event</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see com.objectcarpentry.kaylee.IPlayerEvent
	 * @generated
	 */
	public Adapter createIPlayerEventAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //KayleeAdapterFactory
